scan

fun scan(from: UIViewController, clientId: String, onResult: (TswScanResult) -> Unit)

Launches a sidewall scan with the default TswScannerConfig.

Parameters

from

The UIViewController that presents the full-screen scanner.

clientId

Your Anyline Cloud API client ID, used to authenticate the upload. This is separate from your SDK license key.

onResult

Invoked exactly once, on the main thread, with the TswScanResult outcome.


fun scan(from: UIViewController, clientId: String, config: TswScannerConfig = TswScannerConfig(), onResult: (TswScanResult) -> Unit)

Launches a sidewall scan.

Parameters

from

The UIViewController that presents the full-screen scanner.

clientId

Your Anyline Cloud API client ID, used to authenticate the upload. This is separate from your SDK license key.

config

Optional TswScannerConfig; override UI strings via TswScannerConfig.texts (see io.anyline.tiretread.sdk.tsw.ui.configs.TswScannerTexts). Omit it to use the defaults.

onResult

Invoked exactly once, on the main thread, with the TswScanResult outcome.